home *** CD-ROM | disk | FTP | other *** search
/ Software USA: Back to School / Software USA: Back to School.iso / pc / children / decoder / run / decoder.exe / decoder.dxr / script_6.ls < prev    next >
Encoding:
Text File  |  1996-11-19  |  361 b   |  14 lines

  1. global gValidKeyList, gUpperCaseTable
  2.  
  3. on keyDown
  4.   if (the number of chars in field "encode:name" >= 15) and (the keyCode <> 51) then
  5.     alert("The name should not exceed 15 characters!")
  6.     exit
  7.   end if
  8.   if getOne(gValidKeyList, the key) or (the key = TAB) or (the keyCode = 51) then
  9.     pass()
  10.   else
  11.     alert("This is not a valid input!")
  12.   end if
  13. end
  14.